const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  runtimeCompiler: true,
  productionSourceMap: false,
  lintOnSave: false,
  css: {
    loaderOptions: {
      less: {
        // 若 less-loader 版本小于 6.0，请移除 lessOptions 这一级，直接配置选项。
        lessOptions: {
          modifyVars: {
            // 或者可以通过 less 文件覆盖（文件路径为绝对路径）
            hack: `true; @import "/src/assets/less/overwrite.less";`,
          },
        },
      },
    },
  },
  devServer: {
    // development server port 8000
    allowedHosts: [
      '.qidilu.com'  // .是二级域名的通配符
    ],
    port: 8001,
    // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
    proxy: {
      '/api': {
        target: 'https://ctbsc.lyxinxiangyi.cn',
        ws: false,
        changeOrigin: true
      }
    }
  },
});


